package com.liang.manage.auth.facade.mapper;


import com.liang.manage.auth.facade.entity.UserPo;
import com.liang.manage.auth.facade.entity.UserPoExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserPoMapper {
    /**
     * countByExample
     *
     * @param example
     * @return
     */
    int countByExample(UserPoExample example);

    /**
     * deleteByExample
     *
     * @param example
     * @return
     */
    int deleteByExample(UserPoExample example);

    /**
     * deleteByPrimaryKey
     *
     * @param id
     * @return
     */
    int deleteByPrimaryKey(Long id);

    /**
     * insert
     *
     * @param record
     * @return
     */
    int insert(UserPo record);

    /**
     * insertSelective
     *
     * @param record
     * @return
     */
    int insertSelective(UserPo record);

    /**
     * selectByExample
     *
     * @param example
     * @return
     */
    List<UserPo> selectByExample(UserPoExample example);

    /**
     * selectByPrimaryKey
     *
     * @param id
     * @return
     */
    UserPo selectByPrimaryKey(Long id);

    /**
     * updateByExampleSelective
     *
     * @param record
     * @param example
     * @return
     */
    int updateByExampleSelective(@Param("record") UserPo record, @Param("example") UserPoExample example);

    /**
     * updateByExample
     *
     * @param record
     * @param example
     * @return
     */
    int updateByExample(@Param("record") UserPo record, @Param("example") UserPoExample example);

    /**
     * updateByPrimaryKeySelective
     *
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(UserPo record);

    /**
     * updateByPrimaryKey
     *
     * @param record
     * @return
     */
    int updateByPrimaryKey(UserPo record);
}